<template>
  <div class="banner" @click="handleClick">
    <span>{{ left }}</span>
    <slot name="right"></slot>
  </div>
</template>

<script>
export default {
  name: 'EditBanner',
  props: ['left', 'right'],
  methods: {
    handleClick() {
      this.$emit('handleClick')
    }
  }
}
</script>

<style scoped>
.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  border-bottom: 0.28vw solid #eeeeee;
  padding: 4vw;
  font-size: 4vw;
  color: #333333;
}
</style>
